<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">

<TITLE>SFX commands: TempMode</TITLE>
<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY>

<P class="title"><A NAME="HELPSFXTempMode"></A>SFX commands: TempMode<hr></P>


<P><B><I>TempMode=[@set:user],[Question],[Title]</I></B></P>

<P>This command forces SFX to create a temporary folder, extract all files
to it, start the program specified in <a href="HELPSFXSetup.htm">Setup</a>
command and remove the temporary folder with its entire contents after
completing <I>Setup</I> program. SFX automatically sets
the <A HREF="HELPSFXSilent.htm">silent mode</A> to 2 to skip the start dialog
when performing these steps, but it can be overridden by <I>Silent</I> command
with another parameter. Temporary folder with unpacked files is set as
the current folder for setup program.</P>

<p><i>TempMode</i> command can have several optional parameters.</p>

<p>If @set:user parameter is present, SFX attempts to modify permissions of
temporary folder, so only the current user can access it. By default,
newly created folders might include permissions for several other users
additionally to current one. In some special cases it might be associated
with security risks, such as a local user able to replace files in
a temporary folder, even when SFX is started under system account.</p>

<p>Some installers might fail to start in a folder created with @set:user
parameter.</p>

<p>Two other optional string parameters are treated as a question and
question title displayed before extraction. If they are present, extraction
is started only if user selects "Yes" button. These parameters can be
resided before or after @set:user parameter.</P>

<P>If <I>TempMode</I> command is present, a script should also have
<I>Setup</I> command. <I>Path</I> command is ignored in this mode.</P>

<P>In TempMode SFX needs to detect the termination of setup program to
delete temporary files. Such approach works correctly if setup program is not
terminated before installation is done. But sometimes a setup program starts
a child process and terminates, expecting a child process to complete
installation. In such case SFX deletes temporary files immediately after
detecting that main setup application is finished, resulting in malfunctioning
child process. So TempMode works correctly only with those setup programs,
which do not start another processes or, at least, are not terminated
until all child processes are finished.</P>


<h1>Examples</h1>

<ol>
  <li>Basic TempMode format without parameters</li>
</ol>
<blockquote>
  <p class="sample">TempMode</p>
</blockquote>
<ol start="2">
  <li>Optional question and question title parameters</li>
</ol>
<blockquote>
  <p class="sample">TempMode=Do you wish to install Calculator 3.05,
Calculator setup</p>
</blockquote>
<ol start="3">
  <li>@set:user, optional question and question title parameters</li>
</ol>
<blockquote>
  <p class="sample">TempMode=@set:user, Do you wish to install Calculator 3.05,
Calculator setup</p>
</blockquote>

</BODY>
</HTML>
